class KeyableDto():
    
    def getKey(self):
        return self._key
    
    def setKey(self, key):
        self._key = key
    
    key = property(getKey, setKey)


class IngredientDto(KeyableDto):
    
    def getName(self):
        return self._name
    
    def setName(self, name):
        self._name = name
    
    name = property(getName, setName)

    